﻿using System;
using System.Collections.Generic;
using System.Text;
using TarreOA.TarreOAModels;
using TarreOA.TarreOADAL;

namespace TarreOA.TarreOABLL
{
    public class FileUploadMappingtbService
    {
        //将上传文件信息保存到数据库中
        public bool saveUploadFileInfo(string suln, string iuln, string eContent,  DateTime sendDateTime, int eid)
        {
            bool state = false;
            FileUploadMappingtbDAO fileUploadMappingtbDAO = new FileUploadMappingtbDAO();
            if (fileUploadMappingtbDAO.saveUploadFileInfo(suln, iuln, eContent, sendDateTime, eid) == 1)
            {
                state = true;
            }
            return state;
        }

        //根据接收人登录名称查找自己应接收文件
        public List<FileUploadMappingtb> findByInceptUserLoginName(string uln)
        {
            FileUploadMappingtbDAO fileUploadMappingtbDAO = new FileUploadMappingtbDAO();
            return fileUploadMappingtbDAO.findByInceptUserLoginName(uln);
        }

    }
}
